package ua.dogar.patterns;

import ua.dogar.vectors.Vector;

public class MyObserver implements Observer{
	private Vector vector;
	public MyObserver(Vector vector){
		this.vector = vector;
		vector.registerObserver(this);
	}
	@Override
	public void updateIndex(int index) {
		System.out.println(index);
	}

	@Override
	public void update(Vector vec) {
		System.out.println(vec);
	}

}
